package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "voice")
public class PeachVoice implements Serializable {
    private ObjectId id; //主键id
    private Long vid; //自动增长
    private Long created; //创建时间

    private boolean alreadRead = false;//是不是已读
    private Long userId;
    private String voiceUrl; //语音文件，URL

}
